<?php
/**
 *
 * @author Mike Gao
 */
class InquiryViewModel extends ViewModel{
    protected $pk  = 'Inquiry.id';

    public $viewFields = array(
    	'Inquiry' => array('*'),
        'Customer' => array('name'=>'customer', '_on' => 'Inquiry.customer_id = Customer.id'),
        'Product' => array('id'=>'pid', 'name'=>'pname', 'ename'=>'pename','cas','_on' => 'Inquiry.product_id = Product.id'),
        
    );


}
?>
